package com.etonedu.meals.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class FaceResult implements Parcelable {
    private int code;
    private String msg;
    private List<Face1Bean> result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<Face1Bean> getResult() {
        return result;
    }

    public void setResult(List<Face1Bean> result) {
        this.result = result;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.code);
        dest.writeString(this.msg);
        dest.writeTypedList(this.result);
    }

    public FaceResult() {
    }

    protected FaceResult(Parcel in) {
        this.code = in.readInt();
        this.msg = in.readString();
        this.result = in.createTypedArrayList(Face1Bean.CREATOR);
    }

    public static final Creator<FaceResult> CREATOR = new Creator<FaceResult>() {
        @Override
        public FaceResult createFromParcel(Parcel source) {
            return new FaceResult(source);
        }

        @Override
        public FaceResult[] newArray(int size) {
            return new FaceResult[size];
        }
    };
}
